/**
 * 不要学我，仅作为 form 表单收集用
 */
import React from 'react';
import { Table } from 'antd';

const EnhanceTable = React.forwardRef(({ value, onChange, ...rest }, ref) => {
    React.useEffect(() => {
        onChange(value);
    }, [value]);
    return <Table dataSource={value} {...rest} ref={ref} />;
});

export default EnhanceTable;
